#ifdef _WIN32

#include "system_info.h"
#include <windows.h>

using namespace krryn::core;

class system_info::impl{
public:
	impl(){
		GetSystemInfo(&m_Info);
	}
	
	~impl(){}

	SYSTEM_INFO m_Info;
};

system_info::system_info(){
	m_Pimpl = new impl();
}

system_info::~system_info(){
	delete m_Pimpl;
}

long system_info::number_of_processors(){
	return m_Pimpl->m_Info.dwNumberOfProcessors;
}

#endif